form method = 'get'
  .well
	|营业日期：
	- if params[:check]
	  input type="text" data-behaviour='datepicker' name='start' value=params[:start] 
	  |至
	  input type="text" data-behaviour='datepicker' name='end' value=params[:end]
	- else 
	  input type="text" data-behaviour='datepicker' name='start' value=@start 
	  |至
	  input type="text" data-behaviour='datepicker' name='end' value=@end
	button type='submit' name='check' 查询

  .panel.panel-default
    .panel-heading
      |维修
    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 车牌号
	          th 客户姓名
	          th 业务单号
	          th 结算日期
	          th 合计金额
	          th 收款方式
	          th 工时费
	          th 材料费
	          th 服务顾问
	          
	        -@order_maintains.each do |o|
	          tr
	            td = o.customer.car_num
	            td = o.customer.name
	            td = o.code
	            td = o.pay_datetime.strftime('%Y-%m-%d')
	            td = o.total
	            td = o.payment_method
	            td = o.total-o.cost
	            td = o.cost
	            td = o.user.name

  .panel.panel-default
    .panel-heading
      |美容
    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 车牌号
	          th 客户姓名
	          th 业务单号
	          th 结算日期
	          th 合计金额
	          th 收款方式
	          th 工时费
	          th 材料费
	          th 服务顾问
	          
	        -@order_beauties.each do |o|
	          tr
	            td = o.customer.car_num
	            td = o.customer.name
	            td = o.code
	            td = o.pay_datetime.strftime('%Y-%m-%d')
	            td = o.total
	            td = o.payment_method
	            td = o.total-o.cost
	            td = o.cost
	            td = o.user.name

javascript:
  $(document).on("focus", "[data-behaviour~='datepicker']", function(e){
    $(this).datepicker({"format": "yyyy-mm-dd", "weekStart": 1, "autoclose": true, "language": "zh-CN", "todayHighlight": true});
  });

		            
